package com.tujh.android.designpatterns.Strategy;

/**
 * Created by TUJH on 2016/10/28.
 */
public class Plus extends AbstractCalculator implements ICalculator {

    @Override
    public int calculate(String exp) {
        int arrayInt[] = split(exp, "\\+");
        return arrayInt[0] + arrayInt[1];
    }

}
